function yuyueserver() {
	var A = this;
	this.init = function() {
		return A
	};
	this.YuyueServerSelect = function(C, H,pic) {
		$("#ProductYuyueServerListView").remove();
		$("#masks").remove();
		var D = $(C);
		var E = D.attr("onclick");
		var F = '<div id="ProductYuyueServerListView">';
		F +=
			'<p class="tit"><b>预约·选择服务</b><a href="javascript:void(0);" onclick="_yuyueserver.closeYuyueServerSelect()" class="close"></a><br class="clear" /></p>';
		F += '<ul class="slist">';
			F += '<li class="avatar">';
				F += '<img src="'+pic+'" alt="头像">';
			F += '</li>';
			F += '<li class="items">';
				F += '<a href="javascript:void(0);" onclick="_yuyueserver.yuyueSuccess()"><b>电话咨询</b><i>￥350.00<em>&nbsp;/&nbsp;60分钟</em></i></a>';
			F += '</li>';
			F += '<li class="items">';
				F += '<a href="javascript:void(0);" onclick="_yuyueserver.yuyueSuccess()"><b>语音咨询</b><i>￥400.00<em>&nbsp;/&nbsp;60分钟</em></i></a>';
			F += '</li>';
		F += "</ul>";
		F +=
			'<p class="des"><i>服务说明：<br />1.填写预约信息完成支付，等待专家确认订单并与您取得联系；<br />2.若专家未在有效时间内确认或未提供服务，全额退款。</i></p>';
		F += "</div>";
		var G = document.body.scrollHeight;
		if (G < 600) {
			G = 600
		}
		$("<div id='masks'></div>").addClass("allmasks3").width("100%").height(G).click(function() {
			A.animateDownYuyueServerSelect($("#ProductYuyueServerListView"))
		}).appendTo("body").show();
		$(F).appendTo("body");
		A.animateUpYuyueServerSelect($("#ProductYuyueServerListView"));
		var B = $("#ProductYuyueServerListView>.slist");
		glb.ajax(glb.ajaxUrl + "loadProductYuyueServerList", "html", "UID=" + H, function() {
			// D.attr("onclick", "");
			// B.html('<li class="load"><img src="../images/loading.gif" alt="loading" />姝ｅ湪鍔犺浇222</li>')
		}, function(I) {
			// B.find(".load").remove();
			// B.html(I);
			// D.attr("onclick", E)
		}, function() {
			// D.attr("onclick", E);
			// B.find(".load").remove();
			// B.append('<li class="load"><a href="javascript:void(0);" onclick="_index.YuyueServerSelect(' + C + "," + H +
			// 	')">鍔犺浇澶辫触锛岀偣鍑婚噸鏂板姞杞�1111</a></li>')
		})
	};
	this.animateUpYuyueServerSelect = function(C) {
		var B = C.innerHeight();
		C.css("bottom", B * -1).show().animate({
			bottom: "15%"
		}, "400")
	};
	this.animateDownYuyueServerSelect = function(C) {
		var B = C.innerHeight();
		$("#masks").remove();
		C.show().animate({
			bottom: B * -1
		}, "fast");
		$("#ProductYuyueServerListView").remove()
	};
	this.closeYuyueServerSelect = function() {
		A.animateDownYuyueServerSelect($("#ProductYuyueServerListView"))
	};
	this.sendPM = function(C, B) {
		new pmform().getMsg(C, B)
	};
	this.jalert = function(B) {
		$.jalerttimer("医生暂时不在线，请稍后再尝试！", B, "500", function() {
			$.jfnclose()
		}, null)
	};
	this.yuyueSuccess = function(){
		_yuyueserver.closeYuyueServerSelect();
		layer.alert('预约成功！')
	};
	this.talkUnderLine = function(){
		_yuyueserver.closeYuyueServerSelect();
		layer.alert('医生暂时不在线，请稍后再尝试！')
	}
};
